#include "stm32f10x.h"                  // Device header
#include "OLED.h"
#include "LED.h"
#include "Timer.h"


uint16_t Num;


int main(void)
{
	OLED_Init();
	Timer_Init();
	OLED_ShowString(1, 1, "Num:");			//1行1列显示字符串Num:
	OLED_ShowString(2, 1, "CNT:");			//2行1列显示字符串CNT:
	
	while (1)
	{
		OLED_ShowNum(1, 5, Num, 5);						//不断刷新显示Num变量
		OLED_ShowNum(2, 5, Timer_GetCounter(), 5);		//不断刷新显示CNT的值
	}
}
